FROM java:8

MAINTAINER ljt

ADD *.jar app

RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone

ENV JVM_XMS="-Xms512m"

ENV JVM_XMX="-Xms512m"

ENV namespace="dev"

ENTRYPOINT ["/bin/sh", "-c","java $JVM_XMS $JVM_XMX -jar /app.jar --spring.cloud.discovery.namespace=$namespace"]